﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EBA.WindowsServices
{
    /// <summary>
    /// 服务日志接口，用于输出持久化的信息
    /// </summary>
    public interface IWindowsServiceLogger
    {
        /// <summary>
        /// 输出内容
        /// </summary>
        /// <param name="format"></param>
        /// <param name="args"></param>
        void Log(string format, params object[] args);


        /// <summary>
        /// 单行输出
        /// </summary>
        /// <param name="format"></param>
        /// <param name="args"></param>
        void LogLine(string format, params object[] args);

        ///// <summary>
        ///// 获取含有日志输出的时间列表（以天为单位）
        ///// </summary>
        ///// <returns></returns>
        //List<DateTime> GetDays();

        ///// <summary>
        ///// 获取指定日期（以天为单位）的所有日志信息
        ///// </summary>
        ///// <param name="day"></param>
        ///// <returns></returns>
        //string GetDailyLogs(DateTime day);

        /// <summary>
        /// 屏幕输出
        /// </summary>
        IWindowsServiceOutput Output { get; set; }
    }
}
